<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	titles				= Request("titles")
	contents		= Request("contents")
	seq				= Request("seq")
	noticeFlag		= Request("noticeFlag")
	startDt			= Request("startDt")
	endDt			= Request("endDt")
	flag				= Request("flag")
	userId		= Request.Cookies("S_uid")

	If seq = "" Then seq = 0 End If 

	titles				= Replace(titles,"'","''")
	contents		= Replace(contents,"'","''")

	SQLTitle = "-- ■■■■ 게시판 관리 저장 ■■■■"
	SQL = "exec spBoard '" & titles & "', '" & contents & "', '" & userId & "', '" & noticeFlag & "', '" & startDt & "', '" & endDt & "', '" & flag & "', " & seq

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>